package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import javax.persistence.Column;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_comment")
public class Comment implements Serializable {

    @Id
    @Column(name = "uid")
    private String uid;//评论uid 1

    @Column(name = "user_uid")
    private String userUid;//用户Uid  1
    @Column(name = "to_uid")
    private String toUid;//该评论评论的uid  1
    @Column(name = "to_user_uid")
    private String toUserUid;//该评论回复的用户id 1
    @Column(name = "content")
    private String content;//该评论的内容  1
    @Column(name = "blog_uid")
    private String blogUid;//该评论的博客uid  1
    @Column(name = "status")
    private byte status;//该评论的状态  1
    @Column(name = "create_time")
    private Date createTime;//该评论的评论时间
    @Column(name = "update_time")
    private Date updateTime;//该评论的更新时间
    @Column(name = "source")
    private String source;//评论来源  1
    @Column(name = "TYPE")
    private byte TYPE;//评论类型
    @Column(name = "first_comment_uid")
    private String firstCommentUid;//一级评论Uid

}